.class Lcom/nemustech/regina/ReginaUpdater$2;
.super Ljava/lang/Object;
.source "ReginaUpdater.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaUpdater;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaUpdater;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaUpdater;)V
    .locals 0
    .parameter

    .prologue
    .line 81
    iput-object p1, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v7, 0x1

    const/4 v8, 0x0

    .line 85
    new-instance v3, Landroid/app/AlertDialog$Builder;

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-direct {v3, v4}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v4, 0x7f020077

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f07005c

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 89
    .local v1, builder:Landroid/app/AlertDialog$Builder;
    iget-object v3, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v3}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/XMLRecord;->getResetList()Ljava/util/ArrayList;

    move-result-object v2

    .line 90
    .local v2, target:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    if-eqz v2, :cond_0

    .line 91
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v4}, Lcom/nemustech/regina/ReginaUpdater;->access$000(Lcom/nemustech/regina/ReginaUpdater;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f070069

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "?"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 108
    :goto_0
    iget-object v3, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    iput v8, v3, Lcom/nemustech/regina/ReginaUpdater;->mResult:I

    .line 109
    iget-object v3, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v4, 0x7f07005f

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcom/nemustech/regina/ReginaUpdater$2$1;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/ReginaUpdater$2$1;-><init>(Lcom/nemustech/regina/ReginaUpdater$2;)V

    invoke-virtual {v1, v3, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f070060

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 128
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 129
    .local v0, alert:Landroid/app/AlertDialog;
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 130
    return-void

    .line 94
    .end local v0           #alert:Landroid/app/AlertDialog;
    :cond_0
    iget-object v3, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v3}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/XMLRecord;->getCurrentVersionCode()I

    move-result v3

    packed-switch v3, :pswitch_data_0

    .line 101
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v4}, Lcom/nemustech/regina/ReginaUpdater;->access$000(Lcom/nemustech/regina/ReginaUpdater;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f070067

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-array v5, v7, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v6}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/XMLRecord;->getCurrentVersionName()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f070068

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-array v5, v7, [Ljava/lang/Object;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v7}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/regina/XMLRecord;->getAppName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v7}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/regina/XMLRecord;->getServerVersionName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    goto/16 :goto_0

    .line 96
    :pswitch_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v4}, Lcom/nemustech/regina/ReginaUpdater;->access$000(Lcom/nemustech/regina/ReginaUpdater;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v5, 0x7f070066

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v6}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/XMLRecord;->getAppName()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    iget-object v6, p0, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v6}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/XMLRecord;->getServerVersionName()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v7

    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    goto/16 :goto_0

    .line 94
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
